package service.impl;

import dao.impl.GoodDaoImpl;
import entity.Good;
import service.IGoodService;

public class GoodServiceImpl implements IGoodService{

	GoodDaoImpl gdi = new GoodDaoImpl();
	@Override
	public boolean save(Good good) {
		return gdi.save(good);
	}

	@Override
	public boolean delete(Good good) {
		return gdi.delete(good);
	}

	@Override
	public boolean update(Good good) {
		return gdi.update(good);
	}

	@Override
	public Good selectById(Good good) {
		return gdi.selectById(good);
	}

	@Override
	public Good[] selectAll() {
		return gdi.selectAll();
	}

	@Override
	public Good selectByName(String name) {
		return gdi.selectByName(name);
	}

	@Override
	public Good[] selectByPrice(double low, double high) {
		return gdi.selectByPrice(low, high);
	}

	@Override
	public Good[] selectByDown() {
		return gdi.selectByDown();
	}

	@Override
	public Good[] selectByQuantity() {
		return gdi.selectByQuantity();
	}

}
